<?php
//普通鸭子的抽象工厂
class DuckFactory implements DuckFactoryInterface{
    public function createGreenDuck()
    {
        return new DuckGreen();
    }
    public function createRedDuck()
    {
        return new DuckRed();
    }
    public function createE()
    {
        return new adapt(new E());
    }
}